<?php
/**
 * Created by PhpStorm.
 * User: shuixian
 * Date: 2019/11/20
 * Time: 18:29
 */
$app = <<<APP

[

	{
 "path": "car/article/classify",
 "name": "CarArticleClassify",
 "component": "/application/car/article/classify/list",
 "meta": {
  "keepAlive": true,
  "title": "AppManage",
  "isOnly": false,
  "auth": [],
  "pagePermission": [{
   "title": "CarArticleClassify",
   "index": 0,
   "url": "/app/car/article/classify",
   "auth": ["view", "add", "edit", "del", "outport"]
  }, {
   "title": "CarArticleList",
   "index": 1,
   "url": "/app/car/article/list",
   "auth": ["view", "add", "edit", "del", "outport"]
  }, {
   "title": "CarBrand",
   "index": 2,
   "url": "/app/car/brand",
   "auth": ["view", "add", "edit", "del", "outport"]
  }, {
   "title": "CarList",
   "index": 3,
   "url": "/app/car/list",
   "auth": ["view", "add", "edit", "del", "outport"]
  }, {
   "title": "CarScreen",
   "index": 4,
   "url": "/app/car/screen",
   "auth": ["view", "add", "edit", "del", "outport"]
  }, {
   "title": "CarDeploy",
   "index": 5,
   "url": "/app/car/deploy",
   "auth": ["view", "add", "edit", "del", "outport"]
  }]
 }
}, {
 "path": "car/article/list",
 "name": "CarArticleList",
 "component": "/application/car/article/list",
 "meta": {
  "keepAlive": true,
  "title": "AppManage",
  "isOnly": false,
  "auth": [],
  "pagePermission": [{
   "title": "CarArticleClassify",
   "index": 0,
   "url": "/app/car/article/classify",
   "auth": ["view", "add", "edit", "del", "outport"]
  }, {
   "title": "CarArticleList",
   "index": 1,
   "url": "/app/car/article/list",
   "auth": ["view", "add", "edit", "del", "outport"]
  }, {
   "title": "CarBrand",
   "index": 2,
   "url": "/app/car/brand",
   "auth": ["view", "add", "edit", "del", "outport"]
  }, {
   "title": "CarList",
   "index": 3,
   "url": "/app/car/list",
   "auth": ["view", "add", "edit", "del", "outport"]
  }, {
   "title": "CarScreen",
   "index": 4,
   "url": "/app/car/screen",
   "auth": ["view", "add", "edit", "del", "outport"]
  }, {
   "title": "CarDeploy",
   "index": 5,
   "url": "/app/car/deploy",
   "auth": ["view", "add", "edit", "del", "outport"]
  }]
 }
}, {
 "path": "car/brand",
 "name": "CarBrand",
 "component": "/application/car/brand/list",
 "meta": {
  "keepAlive": true,
  "title": "AppManage",
  "isOnly": false,
  "auth": [],
  "pagePermission": [{
   "title": "CarArticleClassify",
   "index": 0,
   "url": "/app/car/article/classify",
   "auth": ["view", "add", "edit", "del", "outport"]
  }, {
   "title": "CarArticleList",
   "index": 1,
   "url": "/app/car/article/list",
   "auth": ["view", "add", "edit", "del", "outport"]
  }, {
   "title": "CarBrand",
   "index": 2,
   "url": "/app/car/brand",
   "auth": ["view", "add", "edit", "del", "outport"]
  }, {
   "title": "CarList",
   "index": 3,
   "url": "/app/car/list",
   "auth": ["view", "add", "edit", "del", "outport"]
  }, {
   "title": "CarScreen",
   "index": 4,
   "url": "/app/car/screen",
   "auth": ["view", "add", "edit", "del", "outport"]
  }, {
   "title": "CarDeploy",
   "index": 5,
   "url": "/app/car/deploy",
   "auth": ["view", "add", "edit", "del", "outport"]
  }]
 }
}, {
 "path": "car/list",
 "name": "CarList",
 "component": "/application/car/list/list",
 "meta": {
  "keepAlive": true,
  "title": "AppManage",
  "isOnly": false,
  "auth": [],
  "pagePermission": [{
   "title": "CarArticleClassify",
   "index": 0,
   "url": "/app/car/article/classify",
   "auth": ["view", "add", "edit", "del", "outport"]
  }, {
   "title": "CarArticleList",
   "index": 1,
   "url": "/app/car/article/list",
   "auth": ["view", "add", "edit", "del", "outport"]
  }, {
   "title": "CarBrand",
   "index": 2,
   "url": "/app/car/brand",
   "auth": ["view", "add", "edit", "del", "outport"]
  }, {
   "title": "CarList",
   "index": 3,
   "url": "/app/car/list",
   "auth": ["view", "add", "edit", "del", "outport"]
  }, {
   "title": "CarScreen",
   "index": 4,
   "url": "/app/car/screen",
   "auth": ["view", "add", "edit", "del", "outport"]
  }, {
   "title": "CarDeploy",
   "index": 5,
   "url": "/app/car/deploy",
   "auth": ["view", "add", "edit", "del", "outport"]
  }]
 }
}, {
 "path": "car/screen",
 "name": "CarScreen",
 "component": "/application/car/screen/list",
 "meta": {
  "keepAlive": true,
  "title": "AppManage",
  "isOnly": false,
  "auth": [],
  "pagePermission": [{
   "title": "CarArticleClassify",
   "index": 0,
   "url": "/app/car/article/classify",
   "auth": ["view", "add", "edit", "del", "outport"]
  }, {
   "title": "CarArticleList",
   "index": 1,
   "url": "/app/car/article/list",
   "auth": ["view", "add", "edit", "del", "outport"]
  }, {
   "title": "CarBrand",
   "index": 2,
   "url": "/app/car/brand",
   "auth": ["view", "add", "edit", "del", "outport"]
  }, {
   "title": "CarList",
   "index": 3,
   "url": "/app/car/list",
   "auth": ["view", "add", "edit", "del", "outport"]
  }, {
   "title": "CarScreen",
   "index": 4,
   "url": "/app/car/screen",
   "auth": ["view", "add", "edit", "del", "outport"]
  }, {
   "title": "CarDeploy",
   "index": 5,
   "url": "/app/car/deploy",
   "auth": ["view", "add", "edit", "del", "outport"]
  }]
 }
}, {
 "path": "car/deploy",
 "name": "CarDeploy",
 "component": "/application/car/deploy/list",
 "meta": {
  "keepAlive": true,
  "title": "AppManage",
  "isOnly": false,
  "auth": [],
  "pagePermission": [{
   "title": "CarArticleClassify",
   "index": 0,
   "url": "/app/car/article/classify",
   "auth": ["view", "add", "edit", "del", "outport"]
  }, {
   "title": "CarArticleList",
   "index": 1,
   "url": "/app/car/article/list",
   "auth": ["view", "add", "edit", "del", "outport"]
  }, {
   "title": "CarBrand",
   "index": 2,
   "url": "/app/car/brand",
   "auth": ["view", "add", "edit", "del", "outport"]
  }, {
   "title": "CarList",
   "index": 3,
   "url": "/app/car/list",
   "auth": ["view", "add", "edit", "del", "outport"]
  }, {
   "title": "CarScreen",
   "index": 4,
   "url": "/app/car/screen",
   "auth": ["view", "add", "edit", "del", "outport"]
  }, {
   "title": "CarDeploy",
   "index": 5,
   "url": "/app/car/deploy",
   "auth": ["view", "add", "edit", "del", "outport"]
  }]
 }
}, {
 "path": "car/article/classify/edit",
 "name": "CarArticleClassifyEdit",
 "component": "/application/car/article/classify/edit",
 "meta": {
  "title": "AppManage",
  "isOnly": false,
  "auth": [],
  "pagePermission": [{
   "title": "CarArticleClassifyEdit",
   "index": 0,
   "auth": ["view", "add", "edit", "del", "outport"]
  }]
 }
}, {
 "path": "car/article/comment",
 "name": "CarArticleComment",
 "component": "/application/car/article/comment",
 "meta": {
  "keepAlive": true,
  "refresh": false,
  "title": "AppManage",
  "isOnly": false,
  "auth": [],
  "pagePermission": [{
   "title": "CarArticleComment",
   "index": 0,
   "auth": ["view", "add", "edit", "del", "outport"]
  }]
 }
}, {
 "path": "car/article/edit",
 "name": "CarArticleEdit",
 "component": "/application/car/article/edit",
 "meta": {
  "title": "AppManage",
  "isOnly": false,
  "auth": [],
  "pagePermission": [{
   "title": "CarArticleEdit",
   "index": 0,
   "auth": ["view", "add", "edit", "del", "outport"]
  }]
 }
}, {
 "path": "car/brand/edit",
 "name": "CarBrandEdit",
 "component": "/application/car/brand/edit",
 "meta": {
  "title": "AppManage",
  "isOnly": false,
  "auth": [],
  "pagePermission": [{
   "title": "CarBrandEdit",
   "index": 0,
   "auth": ["view", "add", "edit", "del", "outport"]
  }]
 }
}, {
 "path": "car/list/edit",
 "name": "CarListEdit",
 "component": "/application/car/list/edit",
 "meta": {
  "title": "AppManage",
  "isOnly": false,
  "auth": [],
  "pagePermission": [{
   "title": "CarListEdit",
   "index": 0,
   "auth": ["view", "add", "edit", "del", "outport"]
  }]
 }
}, {
 "path": "car/deploy/edit",
 "name": "CarDeployEdit",
 "component": "/application/car/deploy/edit",
 "meta": {
  "title": "AppManage",
  "isOnly": false,
  "auth": [],
  "pagePermission": [{
   "title": "CarDeployEdit",
   "index": 0,
   "auth": ["view", "add", "edit", "del", "outport"]
  }]
 }
}

]
APP;


$model = <<<MODEL

{
 "path": "/car",
 "component": "Layout",
 "redirect": "/car/article/classify",
 "meta": {
  "menuName": "Car",
  "icon": "icon-che",
  "subNavName": [{
   "name": "CarArticleManage",
   "url": [{
    "name": "CarArticleClassify",
    "url": "/car/article/classify"
   }, {
    "name": "CarArticleList",
    "url": "/car/article/list"
   }]
  }, {
   "name": "CarManage",
   "url": [{
    "name": "CarBrand",
    "url": "/car/brand"
   }, {
    "name": "CarList",
    "url": "/car/list"
   }, {
    "name": "CarScreen",
    "url": "/car/screen"
   }, {
    "name": "CarDeploy",
    "url": "/car/deploy"
   }]
  }]
 },
 "children": [{
  "path": "article/classify",
  "name": "CarManage",
  "component": "/application/car/article/classify/list",
  "meta": {
   "keepAlive": true,
   "refresh": false,
   "title": "CarManage",
   "isOnly": false,
   "auth": [],
   "pagePermission": [{
    "title": "CarArticleClassify",
    "index": 0,
    "auth": ["view", "add", "edit", "del", "outport"]
   }]
  }
 }, {
  "path": "article/classify/edit",
  "name": "CarManage",
  "component": "/application/car/article/classify/edit",
  "meta": {
   "title": "CarManage",
   "isOnly": false,
   "auth": [],
   "pagePermission": [{
    "title": "CarArticleClassifyEdit",
    "index": 0,
    "auth": ["view", "add", "edit", "del", "outport"]
   }]
  }
 }, {
  "path": "article/list",
  "name": "CarManage",
  "component": "/application/car/article/list",
  "meta": {
   "keepAlive": true,
   "refresh": false,
   "title": "CarManage",
   "isOnly": false,
   "auth": [],
   "pagePermission": [{
    "title": "CarArticleList",
    "index": 0,
    "auth": ["view", "add", "edit", "del", "outport"]
   }]
  }
 }, {
  "path": "article/comment",
  "name": "CarManage",
  "component": "/application/car/article/comment",
  "meta": {
   "keepAlive": true,
   "refresh": false,
   "title": "CarManage",
   "isOnly": false,
   "auth": [],
   "pagePermission": [{
    "title": "CarArticleComment",
    "index": 0,
    "auth": ["view", "add", "edit", "del", "outport"]
   }]
  }
 }, {
  "path": "article/edit",
  "name": "CarManage",
  "component": "/application/car/article/edit",
  "meta": {
   "title": "CarManage",
   "isOnly": false,
   "auth": [],
   "pagePermission": [{
    "title": "CarArticleEdit",
    "index": 0,
    "auth": ["view", "add", "edit", "del", "outport"]
   }]
  }
 }, {
  "path": "brand",
  "name": "CarManage",
  "component": "/application/car/brand/list",
  "meta": {
   "keepAlive": true,
   "refresh": false,
   "title": "CarManage",
   "isOnly": false,
   "auth": [],
   "pagePermission": [{
    "title": "CarBrand",
    "index": 0,
    "auth": ["view", "add", "edit", "del", "outport"]
   }]
  }
 }, {
  "path": "brand/edit",
  "name": "CarManage",
  "component": "/application/car/brand/edit",
  "meta": {
   "title": "CarManage",
   "isOnly": false,
   "auth": [],
   "pagePermission": [{
    "title": "CarBrandEdit",
    "index": 0,
    "auth": ["view", "add", "edit", "del", "outport"]
   }]
  }
 }, {
  "path": "list",
  "name": "CarManage",
  "component": "/application/car/list/list",
  "meta": {
   "keepAlive": true,
   "refresh": false,
   "title": "CarManage",
   "isOnly": false,
   "auth": [],
   "pagePermission": [{
    "title": "CarList",
    "index": 0,
    "auth": ["view", "add", "edit", "del", "outport"]
   }]
  }
 }, {
  "path": "list/edit",
  "name": "CarManage",
  "component": "/application/car/list/edit",
  "meta": {
   "title": "CarManage",
   "isOnly": false,
   "auth": [],
   "pagePermission": [{
    "title": "CarListEdit",
    "index": 0,
    "auth": ["view", "add", "edit", "del", "outport"]
   }]
  }
 }, {
  "path": "screen",
  "name": "CarManage",
  "component": "/application/car/screen/list",
  "meta": {
   "keepAlive": true,
   "refresh": false,
   "title": "CarManage",
   "isOnly": false,
   "auth": [],
   "pagePermission": [{
    "title": "CarScreen",
    "index": 0,
    "auth": ["view", "add", "edit", "del", "outport"]
   }]
  }
 }, {
  "path": "deploy",
  "name": "CarManage",
  "component": "/application/car/deploy/list",
  "meta": {
   "keepAlive": true,
   "refresh": false,
   "title": "CarManage",
   "isOnly": false,
   "auth": [],
   "pagePermission": [{
    "title": "CarDeploy",
    "index": 0,
    "auth": ["view", "add", "edit", "del", "outport"]
   }]
  }
 }, {
  "path": "deploy/edit",
  "name": "CarManage",
  "component": "/application/car/deploy/edit",
  "meta": {
   "title": "CarManage",
   "isOnly": false,
   "auth": [],
   "pagePermission": [{
    "title": "CarDeployEdit",
    "index": 0,
    "auth": ["view", "add", "edit", "del", "outport"]
   }]
  }
 }]
}
MODEL;


$app_name = config('app.AdminModelList')['app_model_name'];

$menu = $app_name=='longbing_car'?$model:$app;


return ["car" => $menu];


